package com.examination.service.safetyModel;

import com.examination.dao.safetyModel.RiskDao;
import com.examination.entity.Risk;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RiskService implements RiskDao {
    @Autowired
    private RiskDao riskDao;


    @Override
    public int insertRisk(Map map) {
        return riskDao.insertRisk(map);
    }

    @Override
    public int insertRiskPl(Risk risk) {
        return riskDao.insertRiskPl(risk);
    }

    @Override
    public int deleteRisk(Map map) {
        return riskDao.deleteRisk(map);
    }

    @Override
    public int updateRisk(Map map) {
        return riskDao.updateRisk(map);
    }

    @Override
    public List<Risk> findRisk(Map map) {
        return riskDao.findRisk(map);
    }

    @Override
    public long total(Map map) {
        return riskDao.total(map);
    }

    @Override
    public List<Risk> selectRisk(Map map) {
        return riskDao.selectRisk(map);
    }
}
